import { set } from 'date-fns'
import { defineStore } from 'pinia'
interface Tree {
    id: number
    label: string
    children?: Tree[]
}
export const usePermissionSelectStore = defineStore('permissionSelect', {
    state: () => ({
        permissionList: [] as Tree[]
    }),
    actions: {
        setPermissionList(list: Tree[]) {
            this.permissionList = list
        }
    },
    getters: {
        
    },
}
)